package com.invest.controller.base;

import org.springframework.boot.autoconfigure.web.ErrorController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>注释</p>
 *
 * @author yuyizhao
 * @version v0.1 2016/3/8 Exp
 */
@Controller
public class AppErrorController implements ErrorController {

    private static final String ERROR_PATH = "/error";

    @RequestMapping(value=ERROR_PATH)
    public String handleError(){
        return "error";
    }

    @Override
    public String getErrorPath() {
        return ERROR_PATH;
    }
}
